package com.tsl.domain.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商品信息表
 * </p>
 *
 * @author 唐书亮
 * @since 2024-04-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_product")
@ApiModel(description = "商品实体类")
public class TbSKU implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 商品ID
     */
    @TableId(value = "pid", type = IdType.AUTO)
    private Integer pid;

    /**
     * 商品名称
     */
    private String pname;

    /**
     * 商品类型
     */
    private Integer ptype;

    /**
     * 商品价格
     */
    private Double price;

    /**
     * 商品数量
     */
    private Integer pcount;

    /**
     * 商品所处阶段
     */
    private Integer step;

    /**
     * 供应商ID
     */
    private Integer uid;

    /**
     * 供应商名
     */
    @TableField(exist = false)
    private String username;
    /**
    * 逻辑删除
    * */
    @TableField(value = "isdelete")
    private Integer isDelete;
}
